package com.woniu.adminservice.service;

import com.woniu.adminservice.dto.MenuDTO;
import com.woniu.adminservice.entity.Menus;
import java.util.List;

public interface MenusService {

    Menus queryById(Integer id);

    List<Menus> queryAllByLimit(int offset, int limit);
    
    List<Menus> findAll();
    Menus insert(Menus menus);

    Menus update(Menus menus);

    void deleteById(Integer id);

    List<MenuDTO> findAllByRoles(List roleId);

    boolean checkMenuName(Menus menus);

    boolean checkMenu(Menus menus);

    List<Menus> findCheckMenusByRoleId(Integer id);
}